<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../../images/favicon.ico">

    <title>洲博通 - Dashboard  Code Editor </title>
  
	<!-- Bootstrap 4.0-->
	<link rel="stylesheet" href="../../../assets/vendor_components/bootstrap/dist/css/bootstrap.min.css">
	
	<!-- Bootstrap extend-->
	<link rel="stylesheet" href="../../css/bootstrap-extend.css">

	<!-- Theme style -->
	<link rel="stylesheet" href="../../css/master_style.css">

	<!-- 洲博通 skins -->
	<link rel="stylesheet" href="../../css/skins/_all-skins.css">

	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
	<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	<![endif]-->
	<style type="text/css" media="screen">
		.ace-editor { 
			min-height: 300px;
		}
	</style>
</head>
<body class="sidebar-collapse skin-blue sidebar-mini">
  <b data-toggle="push-menu" style="display:none"></b>
<div class="wrapper">


  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Code Editor
      </h1>
      <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="breadcrumb-item"><a href="#">Forms</a></li>
        <li class="breadcrumb-item active">Code Editor</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
     
      <!-- Example Javascript Mode -->
      <div class="box">
        <div class="box-header with-border">
          <h4 class="box-title">Ace Editor (Javascript Mode)</h4>
          <h6 class="box-subtitle">You can find the <a href="https://github.com/ajaxorg/ace-builds" target="_blank">offical website </a></h6>
		  	<ul class="box-controls pull-right">
			  <li><a class="box-btn-close" href="#"></a></li>
			  <li><a class="box-btn-slide" href="#"></a></li>	
			  <li><a class="box-btn-fullscreen" href="#"></a></li>
			</ul>
        </div>
        <!-- /.box-header -->
        <div class="box-body">
        	
        	<pre class="ace-editor" id="editorJS" data-plugin="ace" data-mode="javascript" style="width: 100%;">
/**
 * In fact, you're looking at ACE right now. Go ahead and play with it!
 *
 * We are currently showing off the JavaScript mode. ACE has support for 45
 * language modes and 24 color themes!
 */
function add(x, y) {
    var resultString = "Hello, ACE! The result of your math is: ";
    var result = x + y;
    return resultString + result;
}
var addResult = add(3, 2);
console.log(addResult);
            </pre>        	
		  </div>
        <!-- /.box-body -->
      </div>
      <!-- /.box -->
      
      <!-- Example Html Mode And Emmet Mode -->
      <div class="box">
        <div class="box-header with-border">
          <h4 class="box-title">Ace Editor (Html Mode And Emmet)</h4>
          <h6 class="box-subtitle">You can find the <a href="https://github.com/ajaxorg/ace-builds" target="_blank">offical website </a></h6>
		  	<ul class="box-controls pull-right">
			  <li><a class="box-btn-close" href="#"></a></li>
			  <li><a class="box-btn-slide" href="#"></a></li>	
			  <li><a class="box-btn-fullscreen" href="#"></a></li>
			</ul>
        </div>
        <!-- /.box-header -->
        <div class="box-body">
        	
        	<pre class="ace-editor" id="editorHTML" data-plugin="ace" data-mode="html"
              style="width: 100%;">&lt;!--
* We are currently showing off the Html mode. ACE has support for 45
* language modes and 24 color themes!
 -->
&lt;!DOCTYPE html>
&lt;html lang="en">
&lt;head>
&lt;title>ACE in Action&lt;/title>
&lt;style>
    #editor {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
&lt;/style>
&lt;/head>
&lt;body>
&lt;div id="editor">function foo(items) {
    var x = "All this is syntax highlighted";
    return x;
}&lt;/div>
&lt;script src="/ace-builds/src-noconflict/ace.js" charset="utf-8">&lt;/script>
&lt;script>
    var editor = ace.edit("editor");
    editor.setTheme("ace/theme/monokai");
    editor.getSession().setMode("ace/mode/javascript");
&lt;/script>
&lt;/body>
&lt;/html>
            </pre>        	
		  </div>
        <!-- /.box-body -->
      </div>
      <!-- /.box -->
      
      <!-- Example Css Mode -->
      <div class="box">
        <div class="box-header with-border">
          <h4 class="box-title">Ace Editor (Css Editor)</h4>
          <h6 class="box-subtitle">You can find the <a href="https://github.com/ajaxorg/ace-builds" target="_blank">offical website </a></h6>
		  	<ul class="box-controls pull-right">
			  <li><a class="box-btn-close" href="#"></a></li>
			  <li><a class="box-btn-slide" href="#"></a></li>	
			  <li><a class="box-btn-fullscreen" href="#"></a></li>
			</ul>
        </div>
        <!-- /.box-header -->
        <div class="box-body">
        	
        	<pre class="ace-editor" id="editorCSS" data-plugin="ace" data-mode="text/css" style="width: 100%;">

	/* Some example CSS */

	@import url("something.css");

	body {
	margin: 0;
	padding: 3em 6em;
	font-family: tahoma, arial, sans-serif;
	color: #000;
	}

	#navigation a {
	font-weight: bold;
	text-decoration: none !important;
	}

	h1 {
	font-size: 2.5em;
	}

	h2 {
	font-size: 1.7em;
	}

	h1:before, h2:before {
	content: "::";
	}

	code {
	font-family: courier, monospace;
	font-size: 80%;
	color: #418A8A;
	}
            </pre>        	
		  </div>
        <!-- /.box-body -->
      </div>
      <!-- /.box -->
      
      
    </section>
    <!-- /.content -->
  </div>
  



</div>
<!-- ./wrapper -->

	<!-- jQuery 3 -->
	<script src="../../../assets/vendor_components/jquery/dist/jquery.min.js"></script>
	
	<!-- popper -->
	<script src="../../../assets/vendor_components/popper/dist/popper.min.js"></script>
	
	<!-- Bootstrap 4.0-->
	<script src="../../../assets/vendor_components/bootstrap/dist/js/bootstrap.min.js"></script>
	
	<!-- SlimScroll -->
	<script src="../../../assets/vendor_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
	
	<!-- FastClick -->
	<script src="../../../assets/vendor_components/fastclick/lib/fastclick.js"></script>
	
	<!-- 洲博通 App -->
	<script src="../../js/template.js"></script>
	
	<!-- 洲博通 for demo purposes -->
	<script src="../../js/demo.js"></script>
	
	<!-- ace-editor -->	
	<script src="../../../assets/vendor_plugins/ace-builds-master/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
	<script>
		var editor = ace.edit("editorJS");
		editor.setTheme("ace/theme/solarized_light");
		editor.getSession().setMode("ace/mode/javascript");

		var editor = ace.edit("editorHTML");
		editor.setTheme("ace/theme/solarized_light");
		editor.getSession().setMode("ace/mode/html");

		var editor = ace.edit("editorCSS");
		editor.setTheme("ace/theme/solarized_light");
		editor.getSession().setMode("ace/mode/css");
	</script>
	
</body>
</html>
